.outer {
  width: 400px;
  height: 400px;
  background-color: purple;
  margin: 0 auto;
  display: flex;
}
.outer .inner {
  width: 200px;
  height: 200px;
  background-color: #ffc0cb;
  /*在这里直接用*/
  margin: auto;
}
